package com.lou.springboot.service;

import com.lou.springboot.common.PageResult;
import com.lou.springboot.entity.BlogCategory;
import com.lou.springboot.utils.PageUtil;

import java.util.List;

public interface BlogCategoryService {
    PageResult getBlogCategoryPage(PageUtil pageUtil);

    Boolean saveBlogCategory(String categoryName,
                             String categoryIcon);

    Boolean deleteBatch(Integer[] ids);

    BlogCategory getBlogCategoryById(Integer categoryId);

    boolean updateCategory(Integer categoryId,
                           String categoryName,
                           String categoryIcon);

    List<BlogCategory> getAllCategories();
}
